﻿using System;
using System.Collections.Generic;
using System.Text;

using System.Xml;
using System.Xml.Serialization;

namespace KSS.Generator.Schema
{
    public class Column
    {
        private string _name;
        [XmlAttribute]
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        private string _type;
        [XmlAttribute]
        public string Type
        {
            get { return _type; }
            set { _type = value; }
        }

        private string _dbType;
        [XmlAttribute]
        public string DbType
        {
            get { return _dbType; }
            set { _dbType = value; }
        }

        private bool _isPrimaryKey;
        [XmlAttribute]
        public bool IsPrimaryKey
        {
            get { return _isPrimaryKey; }
            set { _isPrimaryKey = value; }
        }

        private bool _canBeNull;
        [XmlAttribute]
        public bool CanBeNull
        {
            get { return _canBeNull; }
            set { _canBeNull = value; }
        }
    }
}
